import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from './store'
import './plugins/elements'


Vue.config.productionTip = false

new Vue({
  beforeCreate () {
    // 将当前vm作为全局事件总线挂载到Vue的原型对象上  => 所有组件对象都可以看到它
    Vue.prototype.$bus = this
    console.log(this)
  },
  render: h => h(App),
  router,
  store
}).$mount('#app')
